<?php
namespace App\Services;
/**
 * 开发者工具类
 * @description Holp You Do Good But Not Evil
 * @copyright   Copyright 2014-2015 <liao@qiezilife.com>
 * @license     LGPL (http://www.gnu.org/licenses/lgpl.html)
 * @author      Chenyong Cai <ycchen@iwshop.cn>
 * @package     Wshop
 * @link        http://www.icheerslife.com
 */
class DeveloperHelper {

    /**
     * 生成开发者unionid
     */
    public static function generateDevUnionCode(){
        $recycleTimes = 4;
        $data = [];
        for($i=0;$i<$recycleTimes;$i++){
            $rand = APIUtil::createRandomStr(6);
            array_push($data,$rand);
        }
        return strtoupper(implode('-',$data));
    }


}
